import axios from '@/libs/api.request'

// 普通订单查询
export const orderQuery = (data) => {
  return axios.request({
    // url: 'http://10.101.3.228:8088/crs/order/normal/list',
    url: '/sales/order/normal/query',
    method: 'post',
    data: data
  })
}

// 普通逆向订单查询
export const refundOrderQuery = (data) => {
  return axios.request({
    // url: 'http://10.101.3.228:8088/crs/order/return/normal/list',
    url: '/sales/order/refund/query',
    method: 'post',
    data: data
  })
}

// 特殊订单查询
export const specialOrderQuery = (data) => {
  return axios.request({
    // url: 'http://10.101.3.228:8088/crs/order/special/list',
    url: '/sales/order/special/query',
    method: 'post',
    data: data
  })
}

// 特殊逆向订单查询
export const specialRefundOrderQuery = (data) => {
  return axios.request({
    url: '/sales/order/special/refund/query',
    method: 'post',
    data: data
  })
}

// 订单退款
export const orderRefund = (data) => {
  return axios.request({
    url: '/oms/merchant/order/refund',
    method: 'post',
    data: data
  })
}

// 特殊订单退款
export const specialOrderRefund = (data) => {
  return axios.request({
    url: '/oms/merchant/order/special/refund',
    method: 'post',
    data: data
  })
}
